package com.jian.java.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jiange
 * @create 2021-06-03-19:57
 */
@RestController
@RefreshScope
public class MyController {
    @Value("${config.info}")
    private String configinfo;

    @GetMapping("/get")
    public String getConfiginfo(){
        return configinfo;
    }
}
